/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ViewStaffForm.java
 *
 * Created on Apr 18, 2012, 10:41:36 PM
 */
package GUI;

import javax.swing.JLabel;

/**
 *
 * @author VietLH
 */
public class ViewStaffForm extends javax.swing.JDialog {

    /** Creates new form ViewStaffForm */
    public ViewStaffForm(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    public void setLblAddressDtl(String lblAddressDtl) {
        this.lblAddressDtl.setText(lblAddressDtl);
    }

    public void setLblDOBDtl(String lblDOBDtl) {
        this.lblDOBDtl.setText(lblDOBDtl);
    }

    public void setLblDOJDtl(String lblDOJDtl) {
        this.lblDOJDtl.setText(lblDOJDtl);
    }

    public void setLblEduQualDtl(String lblEduQualDtl) {
        this.lblEduQualDtl.setText(lblEduQualDtl);
    }

    public void setLblGenderDtl(boolean lblGenderDtl) {
        if (lblGenderDtl) {
            this.lblGenderDtl.setText("Male");
        } else {
            this.lblGenderDtl.setText("Female");
        }
    }

    public void setLblStaffNameDtl(String lblStaffNameDtl) {
        this.lblStaffNameDtl.setText(lblStaffNameDtl);
    }

    public void setLblUsernameDtl(String lblUsernameDtl) {
        this.lblUsernameDtl.setText(lblUsernameDtl);
    }

    public void setLblTechSkillDtl(String lblTechSkillDtl) {
        this.lblTechSkillDtl.setText(lblTechSkillDtl);
    }

    public void setLblPhoneDtl(String lblPhoneDtl) {
        this.lblPhoneDtl.setText(lblPhoneDtl);
    }
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        lblStaffName = new javax.swing.JLabel();
        lblAddress = new javax.swing.JLabel();
        lblTestName = new javax.swing.JLabel();
        jButton2 = new javax.swing.JButton();
        lblStaffNameDtl = new javax.swing.JLabel();
        lblDOBDtl = new javax.swing.JLabel();
        lblPhoneDtl = new javax.swing.JLabel();
        lblTechSkill = new javax.swing.JLabel();
        lblDOB = new javax.swing.JLabel();
        lblAddressDtl = new javax.swing.JLabel();
        lblDOJ = new javax.swing.JLabel();
        lblDOJDtl = new javax.swing.JLabel();
        lblUsername = new javax.swing.JLabel();
        lblGender = new javax.swing.JLabel();
        lblGenderDtl = new javax.swing.JLabel();
        lblEduQual = new javax.swing.JLabel();
        lblEduQualDtl = new javax.swing.JLabel();
        lblTechSkillDtl = new javax.swing.JLabel();
        lblUsernameDtl = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Staff Details", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), java.awt.Color.blue)); // NOI18N

        lblStaffName.setText("Staff Name:");

        lblAddress.setText("Address:");

        lblTestName.setText("Phone:");

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Icons/Cancel-16.png"))); // NOI18N
        jButton2.setText("Close");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        lblStaffNameDtl.setText("jLabel4");

        lblDOBDtl.setText("jLabel5");

        lblPhoneDtl.setText("jLabel6");

        lblTechSkill.setText("Technical Skill:");

        lblDOB.setText("Date of birth:");

        lblAddressDtl.setText("jLabel9");

        lblDOJ.setText("Date of Join:");

        lblDOJDtl.setText("jLabel11");

        lblUsername.setText("Username:");

        lblGender.setText("Gender:");

        lblGenderDtl.setText("jLabel2");

        lblEduQual.setText("Education Qualification:");

        lblEduQualDtl.setText("jLabel2");

        lblTechSkillDtl.setText("jLabel1");

        lblUsernameDtl.setText("jLabel1");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblEduQual)
                    .addComponent(lblAddress)
                    .addComponent(lblTechSkill)
                    .addComponent(lblDOJ)
                    .addComponent(lblTestName)
                    .addComponent(lblUsername)
                    .addComponent(lblDOB)
                    .addComponent(lblStaffName))
                .addGap(28, 28, 28)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblUsernameDtl)
                    .addComponent(lblPhoneDtl)
                    .addComponent(lblEduQualDtl)
                    .addComponent(lblTechSkillDtl)
                    .addComponent(lblDOJDtl)
                    .addComponent(lblAddressDtl)
                    .addComponent(lblDOBDtl)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(lblStaffNameDtl, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton2)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(lblGender)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblGenderDtl)))))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblStaffNameDtl)
                        .addComponent(lblGender)
                        .addComponent(lblGenderDtl))
                    .addComponent(lblStaffName))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(lblUsername)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblDOB))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(lblUsernameDtl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblDOBDtl)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAddress)
                    .addComponent(lblAddressDtl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTestName)
                    .addComponent(lblPhoneDtl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEduQual)
                    .addComponent(lblEduQualDtl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTechSkill)
                    .addComponent(lblTechSkillDtl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDOJ)
                    .addComponent(lblDOJDtl))
                .addGap(77, 77, 77)
                .addComponent(jButton2)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed

        this.dispose();     }//GEN-LAST:event_jButton2ActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /* Set the Nimbus look and feel */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
//         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(ViewStaffForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(ViewStaffForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(ViewStaffForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(ViewStaffForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /* Create and display the dialog */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                ViewStaffForm dialog = new ViewStaffForm(new javax.swing.JFrame(), true);
//                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
//
//                    @Override
//                    public void windowClosing(java.awt.event.WindowEvent e) {
//                        System.exit(0);
//                    }
//                });
//                dialog.setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lblAddress;
    private javax.swing.JLabel lblAddressDtl;
    private javax.swing.JLabel lblDOB;
    private javax.swing.JLabel lblDOBDtl;
    private javax.swing.JLabel lblDOJ;
    private javax.swing.JLabel lblDOJDtl;
    private javax.swing.JLabel lblEduQual;
    private javax.swing.JLabel lblEduQualDtl;
    private javax.swing.JLabel lblGender;
    private javax.swing.JLabel lblGenderDtl;
    private javax.swing.JLabel lblPhoneDtl;
    private javax.swing.JLabel lblStaffName;
    private javax.swing.JLabel lblStaffNameDtl;
    private javax.swing.JLabel lblTechSkill;
    private javax.swing.JLabel lblTechSkillDtl;
    private javax.swing.JLabel lblTestName;
    private javax.swing.JLabel lblUsername;
    private javax.swing.JLabel lblUsernameDtl;
    // End of variables declaration//GEN-END:variables
}
